home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 3: CDPD 3
/
Almathera Ten on Ten - Disc 3: CDPD3.iso
/
scope
/
151-175
/
scopedisk168
/
asmmacros
/
am_02
/
allocuds.i
< prev
next >
Wrap
Text File
|
1995-03-19
|
901b
|
28 lines
NOLIST
AllocUDS MACRO ; 19 Dec 88
*------------------------------; Start of AllocUDS macro.
; Put block size in D0.
MOVE.L #\1,D0
CLR.L D1 ; Accept any memory.
NOLIST
; Define _AbsExecBase and _LVOAllocMem if
IFND _AbsExecBase ; they have not yet been defined.
LIST
XREF _AbsExecBase
NOLIST
ENDC
IFND _LVOAllocMem
LIST
XREF _LVOAllocMem
NOLIST
ENDC
LIST
MOVE.L _AbsExecBase,A6
JSR _LVOAllocMem(A6) ; Allocate the UDS memory block.
MOVEA.L D0,A5 ; Make A5 point to the UDS memory.
OnReEntrant ; Turn on reentrant programming.
TST.L D0 ; Make the zero flag indicate failure.
*------------------------------; End of AllocUDS macro.
ENDM
LIST